package com.demo.service;

import com.demo.config.query.ActivityQuery;
import com.demo.entity.Activity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.vo.ActivityVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ActivityService extends IService<Activity>{

    /*
    分页查询市场活动
     */
    PageInfo<ActivityVo> queryActivityListByPage(Integer current, Integer pageSize, ActivityQuery activityQuery);
    /**
     *  自定义添加活动
     */
    public boolean save(Activity activity);
    public  boolean updateById(Activity activity);
    /**
     * 根据标识查看市场活动详情
     */
    ActivityVo queryActivityDetailById(Integer activityId);
    /**
     * 查询所有市场活动列表
     */
    List<Activity> queryAllActivityList();
}
